package cn.iocoder.yudao.module.project.dal.mysql.internalworkstationplan;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.project.dal.dataobject.internalworkstationplan.InternalWorkstationPlanDO;
import org.apache.ibatis.annotations.Mapper;
import cn.iocoder.yudao.module.project.controller.admin.internalworkstationplan.vo.*;

/**
 * 内码工位计划 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface InternalWorkstationPlanMapper extends BaseMapperX<InternalWorkstationPlanDO> {

    default PageResult<InternalWorkstationPlanDO> selectPage(InternalWorkstationPlanPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<InternalWorkstationPlanDO>()
                .eqIfPresent(InternalWorkstationPlanDO::getInternalCode, reqVO.getInternalCode())
                .eqIfPresent(InternalWorkstationPlanDO::getWorkstationId, reqVO.getWorkstationId())
                .betweenIfPresent(InternalWorkstationPlanDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(InternalWorkstationPlanDO::getId));
    }

}